﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using LumenLiquid.Database.Entities.Language;

namespace LumenLiquid.Database.Mappings
{
    internal sealed class TranslationMap : ClassMap<Translation>
    {
        public TranslationMap()
        {
            Table(Main.Instance.Language);

            LazyLoad();

            Id(m => m.TranslationId).Column("trans_id").Unique().GeneratedBy.Assigned().CustomSqlType("text");
            Map(m => m.Translated).Column("translation");
        }
    }
}
